﻿using DC2010.Objects.Base;
using DC2010.Objects;
using DC2010.Objects.Data;
using log4net;
using System.Reflection;


namespace DC2010.AI
{
    public class AILogic : BaseObject
    {
        protected ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        public AILogic(AIData ed)
        {
            Info = Root.I.AISystem.GetInfo(ed.InfoId);
            Gfx = Root.I.AISystem.GetGfx(ed.GfxId);
            Data = ed;
        }

        public AIInfo Info { get; set; }
        public AIGfx Gfx { get; set; }
        public AIData Data { get; set; }

        public virtual void Think(CreatureData cdMe, CreatureData cdVictim = null) { }

        public void Init() { }

        public override string ToString()
        {
            return ShortName;
        }
    }
}
